package Experiment6;
import java.util.*;
import java.io.*;
public class Memo implements Serializable{
    private String topic;
    private Date date;
    private String message;
    private int num;
    public Memo(){
    };
    public Memo(String topic,String message){
        this.topic = topic;
        this.message = message;
        this.date = new Date();
    }
    @Override
    public String toString(){
        return "Topic:"+this.topic+"\ndate:"+this.date+"\n"+"  "+this.message;
    }
}
